@success: #00bfa5;
@running: #4d90fe;
@pending: #ffb100;
@failed: #f77a70;
@canceled: #d8d8d8;
@skipped: #d8d8d8;
@stop: #ff7043;
@not_audit: #f1b42d;

.c7n-piplineManage-detail-column {
  flex: 0 1 auto;
  position: relative;
  width: 2.1rem;
  min-height: ~'calc(100vh - 2.4rem)';
  background: rgba(245, 246, 250, 1);
  border-radius: 4px;
  padding: 12px;
  flex-shrink: 0;
  &-item-title {
    span {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
  }

  & + & {
    margin-left: 0.16rem;
  }
  &:first-of-type {
    .c7n-piplineManage-detail-column-type {
      display: none;
    }
  }

  &-success {
    border-top: 4px solid @success;
  }
  &-running {
    border-top: 4px solid @running;
  }
  &-pending {
    border-top: 4px solid @pending;
  }
  &-failed {
    border-top: 4px solid @failed;
  }
  &-stop {
    border-top: 4px solid @stop;
  }
  &-not_audit {
    border-top: 4px solid @not_audit;
  }

  &-type {
    position: absolute;
    top: 0.5rem;
    left: -0.27rem;
    &:first-of-type {
      display: none;
    }
  }

  &-header {
    display: flex;
    align-items: center;
    span:first-of-type {
      font-size: 0.15rem;
      font-weight: 500;
      color: var(--text-color);
      line-height: 0.21rem;
      white-space: nowrap;
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    span:nth-of-type(3) {
      font-size: 0.12rem;
      font-weight: 400;
      color: rgba(0, 0, 0, 0.54);
      line-height: 0.17rem;
      margin-left: auto;
    }
  }
  &-lists {
    margin-top: 0.16rem;
    h6 {
      font-size: 0.13rem;
      font-weight: 400;
      color: rgba(58, 52, 95, 1);
      line-height: 0.12rem;
      margin-bottom: 12px;
    }
  }
  &-item {
    border: 1px solid transparent;
    &-clickable {
      transition: 0.2s;
      &:hover {
        border-color: var(--primary-color);
        box-shadow: 0 2px 4px 0 rgba(15, 19, 88, 0.08);
        cursor: pointer;
      }
    }
    &-date {
      font-size: 10px;
      font-weight: 400;
      color: rgba(58, 52, 95, 0.65);
      line-height: 14px;
      display: block;
      max-width: 1.3rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    &-icon {
      font-size: 18px;
      display: block;
      color: var(--help-icon-color);
    }
    &-time {
      margin-left: auto;
      line-height: 1.8;
      span {
        font-size: 0.12rem;
        font-weight: 400;
        line-height: 0.17rem;
        &:first-of-type {
          color: rgba(58, 52, 95, 1);
        }
        &:nth-of-type(2) {
          color: rgba(58, 52, 95, 0.65);
        }
      }
    }
    & + & {
      margin-top: 12px;
    }
    padding: 0.08rem;
    background: rgba(255, 255, 255, 1);
    border-radius: 4px;
    &-btn {
      width: 0.2rem !important;
      height: 0.2rem !important;
      line-height: 0.2rem !important;
      background: #fff;
      box-shadow: 0 2px 4px 0 #cacae4;
      margin-left: auto;
    }
    header {
      display: flex;
    }
    footer {
      margin-top: 14px;
      display: flex;
      & > i {
        padding: 3px;
        border-radius: 50%;
        font-size: 0.15rem !important;
        line-height: 0.13rem !important;
        cursor: pointer;
        &:hover {
          background-color: #e2e2e2;
        }
      }
      & > .c7n-pro-btn + .c7n-pro-btn {
        margin: 0 !important;
      }
    }
    main {
      margin-top: 14px;
      div + div {
        margin-top: 6px;
      }
      div {
        display: flex;
        span {
          font-size: 0.12rem;
          font-weight: 400;
          line-height: 0.17rem;
          &:first-of-type {
            color: rgba(58, 52, 95, 1);
            white-space: nowrap;
          }
          &:nth-of-type(2) {
            color: rgba(58, 52, 95, 0.65);
            margin-left: 0.1rem;
            max-width: 1.08rem;
            overflow-wrap: break-word;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            display: -webkit-box;
            overflow: hidden;
          }
        }
      }
    }
  }
}
